#ifndef FOOD_H
#define FOOD_H

#include "btBulletDynamicsCommon.h"
// #include "GL/gl.h"

#include "src/utils/settings.h"
#include "src/utils/displaylists.h"
#include "src/graphics/be_color.h"
#include "bodyowner.h"

using namespace std;

class Food : public Bodyowner
{
	public:
		Food(btDynamicsWorld* m_dynamicsWorld, const btVector3& startOffset);
		~Food();

		void			draw();
    float     beEaten(float amount);
		btScalar		position[16];

// 		float			color[3];

		unsigned int		lifetime;
		unsigned int		totalFrames;
		btDefaultMotionState* myMotionState;
	private:
		Settings		*settings;
		btBoxShape* boxShape;
		btVector3 halfExtent;
    BeColor   color;

		const unsigned int*	food_size;
};

#endif
